﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace CenterControllerServer.WebApi.Utils
{
    public static class QueryStringHelper
    {
        public static string ToStandString(string queryString)
        {
            Regex regx = new Regex(@"(?<=\S)\s{2,}(?=\S)");
            var standString =  regx.Replace(queryString, " ");
            standString = standString.Trim();
            return standString.ToLower();
        }
    }
}
